<#--
/****************************************************
 * Description: 用户登陆页面
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      qiaowenbin
 * @version     0.0.1.20140627
 * @see
	HISTORY
    *  2014-06-27 qiaowenbin Create File
**************************************************/
-->
<#include "/templates/bs-inc.ftl"> 
<@html>
<@head import=true>
<style type="text/css">
body {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #eee;
}

.form-signin {
  max-width: 400px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .form-signin-heading{
  margin-bottom: 10px;
}
.form-signin .control-label{
  font-size: 16px;
}
.form-signin .form-control {
  position: relative;
  font-size: 16px;
  height: auto;
  padding: 10px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="text"] {
  margin-bottom: -1px;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
}
</style>
</@head>
<@body>
	<div class='col-lg-6' style='margin:0px auto;float:none;'>
	
		
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h2 class='panel-title'>欢迎登录爱课管理系统</h2>
			</div>
			<div class="panel-body">
				<form class="form-horizontal form-signin" role="form" action="${base}/login/logon">

					<div class="form-group">
						<label for="username" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 control-label">用户名</label>
						<div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
							<input class="form-control" required name="loginname" id="username" placeholder="用户名" type="text" value="${loginname}" autofocus>
						</div>
					</div>
					<div class="form-group">
						<label for="password" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 control-label">密码</label>
						<div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
							<input class="form-control" required name="password" id="password" placeholder="密码" type="password">
						</div>
					</div>
					<div class="form-group text-center">
						<div class="col-md-offset-3 col-lg-offset-3 col-xs-12 col-sm-6 col-md-6 col-lg-6">
							<input class="btn btn-lg btn-primary btn-block" type="submit" value="登录"/>
						</div>
					</div>
					<#if loginErrInfo?exists>
						<div class="form-group">
							<div class="col-sm-offset-3 col-md-offset-3 col-xs-12 col-sm-9 col-md-9 col-lg-9">
								<h4 class="text-danger">${loginErrInfo}</h4>
							</div>
						</div>
					</#if>
				</form>
			</div>
		
		</div>
	</div>
</@body>
</@html>

